home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / cmln0286.arc / DATACON2.LTG < prev    next >
Text File  |  1986-02-03  |  640b  |  24 lines

  1.  
  2.                             Listing 2
  3.  
  4.            /* Linked List Module */
  5.            #include "lldef.h"
  6.            #include "stdio.h"
  7.  
  8.            struct linktype {
  9.          struct linktype *next;
  10.          struct linktype *previous;
  11.          struct itemtype item;
  12.            };
  13.  
  14.            static struct linktype *head = NULL;è           static struct linktype *tail = NULL;
  15.            static struct linktype *clp = NULL;
  16.  
  17.            int listlength = 0;
  18.  
  19.            /* Externally accessible procedures: set_head(),
  20.           set_tail(), next(), etc.             */
  21.  
  22.            /* Static procedures: create_link(),
  23.           destroy_link(), etc.                 */
  24.